<?php

	class Support extends CI_Model
	{
		public function __construct()
		{
			parent::__construct();
		}

		public function getAll()
		{
			$query = $this->db->get('support');
			return $query->result_array();
		}

		public function getContact($id)
		{
			$query = $this->db->get_where('support',array('id' => $id));
			return $query->row_array();
		}

		public function addContact($data)
		{
			return $this->db->insert('support',$data);
		}

		public function updateContact($data,$id)
		{
			$this->db->where('id',$id);
			return $this->db->update('support',$data);
		}
	}